package com.czh.controller;

import com.czh.domain.ResponseResult;
import com.czh.domain.vo.PhotoShowVo;
import com.czh.service.PhotoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
/**
 * @author caozaihui
 */
@RestController
public class PhotoController {
    @Resource
    private PhotoService photoService;

    @GetMapping("/photo")
    public ResponseResult<List<PhotoShowVo>> getPhotoList() {
        return ResponseResult.okResult(photoService.getPhotoList());
    }
    @GetMapping("/imgList")
    public ResponseResult<List<String>> imgList(){
        return ResponseResult.okResult(photoService.getImgList());
    }
}
